﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ZH-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>
<title>学生选题</title>
<meta name="keywords" content="吉珠,吉林大学,吉林大学珠海学院,吉林大学珠海学院论文管理">
<meta name="content-type" content="text/html; charset=UTF-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
	
	<META HTTP-EQUIV="pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"> 
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">

<link rel="stylesheet"
	href="${pageContext.request.contextPath}/pages1/css/bootstrap.css"
	type="text/css">
<script
	src="${pageContext.request.contextPath}/pages1/js/jquery-2.1.1.js"
	type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/pages1/js/bootstrap.js"
	type="text/javascript"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/jquery.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
<link rel="stylesheet" href="<%=request.getContextPath()%>/jquery-easyui-1.4.1/themes/gray/easyui.css"
	type="text/css"></link>
<link rel="stylesheet" href="<%=request.getContextPath()%>/jquery-easyui-1.4.1/themes/icon.css"
	type="text/css"></link>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>

<script>
	var stuDis;
	var stuOwnDis;
	$(function() {
		stuDis = $('#stuDis').datagrid({
			url : '<%=request.getContextPath()%>/stuGetDisInfo',
			title : '论文选题',
			pagination : true,
			singleSelect : true,
			sortName : 'id',
			sortOrder : 'asc',
			fit : true,
			fitColumns : true,
			columns : [ [ {
				field : 'id',
				title : 'id',
				width : 50,
				sortable : true,
			}, {
				field : 'dissName',
				title : '论文题目',
				width : 100,
			}, {
				field : 'dissType',
				title : '论文类型',
				width : 100
			}, {
				field : 'dissSrc',
				title : '来源',
				width : 100
			}, {
				field : 'dissStateOfExamination',
				title : '论文状态',
				width : 100
			}, {
				field : 'radio',
				title : '勾选',
				editable  :false,
				//checkbox: true,
				formatter : function(value, row, index) {
					return "<a onclick=select('+index+')>选定</a>";
				}
			} ] ],
			/*onClickRow:function(rowIndex, rowData){
			var id=rowData.id;
				//console.info(rowData);
				//alert("当前选中行为"+rowIndex+"\n id为"+rowData.id);

				$.ajax({
                            //要用post方式   
                            type: "Post",
                            //方法所在页面和方法名   
                            url: "stuSelectDis/"+id,
                            contentType: "application/json; charset=utf-8",
                            dataType: "json",
                            success: function (data) {
                             alert("选题已提交，请等待所属老师审核(提示：在底部表格可查看所选题目！)");
                                //返回的数据用data.d获取内容   
                              stuOwnDis.datagrid("load");
                                
                            },
                            error: function (err) {
                               alert("服务器繁忙，请稍后再试!");
                            }
                        });
			}
			
			*/
			
		});
		

		stuOwnDis = $('#stuOwnDis').datagrid({
			url : '<%=request.getContextPath()%>/getStuOwnDis',
			title : '已提交论文选题',
			 cache: false,
			fit : true,
			fitColumns : true,
			columns : [ [ {
				field : 'id',
				title : 'id',
				width : 50,
			}, {
				field : 'dissName',
				title : '论文题目',
				width : 100,
			}, {
				field : 'dissType',
				title : '论文类型',
				width : 100
			}, {
				field : 'dissSrc',
				title : '来源',
				width : 100
			}, {
				field : 'dissStateOfExamination',
				title : '论文状态',
				width : 100
			} ] ]

		});
		
	});
	select=function(index){
		var row=$('#stuDis').datagrid('getSelected');
		if(row){
		if(row.dissStateOfExamination=="未审核")
		{$.messager.confirm('系统提示','您确定要选中此题目吗?',function(r){
		if(r){
		$.post('<%=request.getContextPath()%>/stuSelectDis',{id:row.id},function(result){
		if(result.success){
		stuOwnDis.datagrid("reload");
		stuDis.datagrid("reload");
		$.messager.alert("系统提示","已成功选取");
		}
		},'json');
		}
		});}
		if(row.dissStateOfExamination=="已审核")
		   $.messager.alert("系统提示","此题目已通过教师审核，请选择状态为未审核的题目！");
		}
			};
</script>
<style>
.col-xs-3 {
	padding: 1px;
	height: 820px;
	overflow: auto;
}

.col-xs-9 {
	height: 820px;
}

.container {
	width: 970px !important;
}

.xs11 {
	margin-top: 20px;
	margin-left: 30px;
}

#xs11 {
	height: 150px;
}

#xs10 {
	height: 110px;
}

#xs9 {
	height: 50px;
}

#xs8 {
	height: 250px;
}

.table {
	margin: 0px;
}

.col-xs-10 {
	margin-left: 16px;
	overflow: auto;
}

body {
	font-size: 12px;
}

ul {
	margin: 0;
	padding: 7px;
}

ul li {
	height: 22px;
	vertical-align: bottom;
}
</style>
</head>

<body>
	<div class="container">
		<div class="row">
			<p class="bg-primary" style="margin-bottom:0px">
				<strong>&nbsp;&nbsp;</strong>
			</p>
			<img src="${pageContext.request.contextPath}/pages1/image.jpg"
				align="center" width="970px" />
		</div>
		<div class="row">
			<div class="col-xs-12" style="border:2px solid #428bca">
				<div class="col-xs-4">
					<strong>欢迎：</strong>${studentName }同学进入系统</div>
				<div class="col-xs-4">
					<ahref"#">您有两条未读消息</a>
				</div>
				<div class="col-xs-4 " align="right">
					<a href="/LWGL/users">
						<button type="button" class="btn btn-primary btn-sm">返回首页</button>
					</a>
					<button type="button" class="btn btn-primary btn-sm">帮助系统</button>
					<button type="button" class="btn btn-primary btn-sm">退出系统</button>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-xs-3" style="border:2px solid #428bca">
				<ul class="nav nav-pills nav-stacked" role="tablist">
					<li class="active" data-toggle="collapse" data-target="#demo1"><a
						href="#"><strong>流程管理</strong></a></li>
				</ul>
				<ul class="nav nav-pills nav-stacked collapse in" role="tablist"
					id="demo1">
					<li><a
						href="${pageContext.request.contextPath}/pages1/flowManageStudent_1.jsp">学生申报课题</a></li>
					<li><a href="#">学生选题</a></li>
					<li><a
						href="${pageContext.request.contextPath}/pages1/flowManageStudent_3.jsp">查看论文重要提交时间</a></li>
					<li><a
						href="${pageContext.request.contextPath}/xsxt/queryStuDis">开题报告</a></li>
					<li><a href="flowManageStudent_5.html">中英文摘要</a></li>
					<li><a href="flowManageStudent_6.html">中期检查</a></li>
					<li><a href="flowManageStudent_7.html">月进展情况记录</a></li>
					<li><a href="flowManageStudent_8.html">论文草稿</a></li>
					<li><a href="flowManageStudent_9.html">论文定稿</a></li>
					<li><a href="flowManageStudent_10.html">查看答辩信息</a></li>
					<li><a href="flowManageStudent_11.html">校外毕业设计申请</a></li>
					<li><a href="flowManageStudent_12.html">英文撰写论文申请</a></li>
					<li><a href="flowManageStudent_13.html">查看答辩成绩</a></li>
					<li><a href="flowManageStudent_14.html">表格材料打印导出</a></li>
					<li><a href="flowManageStudent_15.html">优秀论文评语信息</a></li>
				</ul>
				<div style="border:1px solid #FFFAF0"></div>
				<ul class="nav nav-pills nav-stacked" role="tablist">
					<li class="active" data-toggle="collapse" data-target="#demo2"><a
						href="#"><strong>特殊情况处理</strong></a></li>
				</ul>
				<ul class="nav nav-pills nav-stacked collapse" role="tablist"
					id="demo2">
					<li><a href="lwdgxg.html">论文定稿修改</a></li>
				</ul>
				<div style="border:1px solid #FFFAF0"></div>
				<ul class="nav nav-pills nav-stacked" role="tablist">
					<li class="active" data-toggle="collapse" data-target="#demo3"><a
						href="#"><strong>账号管理</strong></a></li>
				</ul>
				<div style="border:1px solid #FFFAF0"></div>
				<ul class="nav nav-pills nav-stacked collapse" role="tablist"
					id="demo3">
					<li><a href="informationInteraction_1.html">修改密码</a></li>
					<li><a href="informationInteraction_2.html">修改个人信息</a></li>
				</ul>
				<ul class="nav nav-pills nav-stacked" role="tablist">
					<li class="active" data-toggle="collapse" data-target="#demo4"><a
						href="#"><strong>交流互动</strong></a></li>
				</ul>
				<div style="border:1px solid #FFFAF0"></div>
				<ul class="nav nav-pills nav-stacked collapse" role="tablist"
					id="demo4">
					<li><a href="sjx.html">收件箱</a></li>
					<li><a href="fjx.html">发件箱</a></li>
					<li><a href="zdrz.html">指导日志</a></li>
				</ul>
			</div>

			<!--修改部分-->

			<div class="col-xs-9" style="border:2px solid #428bca">
				<div class="row">
					<div class="col-xs-11 xs11" style="border:2px solid #428bca">
						<strong>流程管理》学生选题</strong>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-11 xs11" style="border:2px solid #428bca"
						id="xs11">
						操作指南：
						<div class="col-xs-12" style="border:2px solid #428bca" id="xs10">
							论文题目由学生申报题目与教师提交题目合成作为学生论文的选取题目：
							<ol>
								<li>学生一般可以申报两个题目，最后确定一个项目，另一个题目可以作为选题库储备题目，教师一般可以提交5个题目左右，作为学生选题使用，在指导教师审核通过后，将论文题目作为开题报告的论文题目，论文题目在指导教师审核阶段可以进行修改，当申报的题目在专业负责人审批通过后，将不可以修改了。</li>
							</ol>
						</div>
					</div>
				</div>
				<hr />
				<div class="row">
					<div class="col-xs-11 xs11">
						<br>
						<p>
							<b><font size="3">毕业设计流转状态：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;选题阶段
							
						</p>
						</b></font> <br>
					</div>
					<div class="col-xs-11 xs11 table-responsive" id="xs8" style="height: 300px">
						<!-- 选题后台代码段开始 -->
						<table id="stuDis"></table>

						<!-- 选题后台代码段结束 -->
					</div>
				</div>
				<div class="row" style="height: 100px">
					<div class="col-xs-11 xs11" id="xs9" style="height: 100px">
						<table id="stuOwnDis"></table>
						<!-- 学生选题展示后台代码段开始 -->

						<!-- 学生选题展示后台代码段结束 -->
						<br>
					</div>
				</div>
			</div>
		</div>

		<!--修改结束-->

		<div class="row">
			<p class="bg-primary" align="center">
				<strong>用户单位：</strong>吉林大学珠海学院&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>版权所有：</strong>吉林大学珠海学院计算机科学与技术系
			</p>
		</div>
	</div>
</body>
</html>
